/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package at.nhmwien.schema_mapping_tool;

import at.nhmwien.schema_mapping_tool.fileProcessors.*;

/**
 *
 * @author wkoller
 */
public abstract class DataSourceOptionsPanel extends javax.swing.JPanel {
    protected String sourceName = "";
    protected boolean bInput = false;
    protected String[] availOptions = null;

    public abstract String getFileName();
    
    public void setSourceName( String nSourceName ) {
        this.sourceName = nSourceName;

        this.setAvailOptions( ProcessorHandler.self().getProcessorForType(sourceName).getAvailableOptions() );
    }
    
    public void setType( boolean nbInput ) {
        this.bInput = nbInput;
    }

    public void setAvailOptions( String[] nAvailOptions ) {
        this.availOptions = nAvailOptions;
    }
}
